#ifndef _GUI_WRITER_H_02042013_
#define _GUI_WRITER_H_02042013_

#include <QRunnable>
#include <QObject>

#include "Shelf.h"

namespace library {

  class Writer : public QObject, public QRunnable {

      Q_OBJECT

   public:

    explicit Writer(Shelf *shelf, int time, QObject *parent = 0);
    void run();
      
   signals:

    void write();
    void edit();
    void wait();

   private:

    Shelf *shelf;
    int time;
    QVector<int> collection;

  };

} // namespace library

#endif // _GUI_WRITER_H_02042013_
